<?php

use Illuminate\Database\Seeder;
use App\Models\FeedBack;

class FeedBacksTableSeeder extends Seeder
{
    public function run()
    {
        $feed_backs = factory(FeedBack::class)->times(50)->make()->each(function ($feed_back, $index) {
            if ($index == 0) {
                // $feed_back->field = 'value';
            }
        });

        FeedBack::insert($feed_backs->toArray());
    }

}

